{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "\n",
    "df_train = pd.read_csv(\"/media/zhengpeng/epan/program/python/news_clippings/news_clippings/data/merged_balanced/train.tsv\",sep='\\t', header=0, index_col='index')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "#1 Label                                                      0\n",
      "#2 ImageID                       ./guardian/images/0338/482.jpg\n",
      "#3 String     Saudi troops cheer as they ride at the back of...\n",
      "Name: 0, dtype: object\n"
     ]
    }
   ],
   "source": [
    "for kk,vv in df_train.iterrows():\n",
    "    print(kk)\n",
    "    print(vv)\n",
    "    break"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "cosmos",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.18"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
